]> dgit.raspbian.org Git - gnome-shell.git/commit
background: Add exception to no-loop-func rule
authorFlorian Müllner <fmuellner@gnome.org>
Sun, 15 Sep 2019 00:51:40 +0000 (02:51 +0200)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Mon, 11 Nov 2019 23:51:17 +0000 (23:51 +0000)
commit66fc5c07bb950fee0e7d87d0b09af9a04c2efe01
tree1bf78ad40443c84593eb85eb6e6c29db9646bd49
parenta32c4f30d15e2aec3b93947e0ea7cb3138babe13
background: Add exception to no-loop-func rule

Modifying variables from an outer scope in functions created in a loop
is considered problematic by eslint, because the variable value in the
resulting closure is often not what the coder intended.

In this particular case however, the scoping is correct, so add a comment
to disable the rule locally.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/818
js/ui/background.js